package com.ieds.core.mapper;

import com.ieds.core.model.KDatabaseMonitor;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.List;

/**
 * @Auther: wanglei
 * @Date: 2020.05.29
 * @Description: com.ieds.core.mapper
 */
public interface DatabaseRecordDao extends BaseMapper<KDatabaseMonitor> {

    @SqlStatement(params = "kDatabaseMonitor,start,size,startTime,finishTime")
    List<KDatabaseMonitor> pageQueryRecord(KDatabaseMonitor kDatabaseMonitor, Integer start, Integer size, String startTime, String finishTime);
    @SqlStatement(params = "kDatabaseMonitor,startTime,finishTime")
    Long allCountRecord(KDatabaseMonitor template, String startTime, String finishTime);
}
